using UnityEngine;
using UnityEngine.Events;

namespace Geo.DizzyLab
{
    public class BooleanEvent : MonoBehaviour
    {
        public UnityEvent onTrue, onFalse;
        public UnityEvent<bool> onBoolean;

        public void SetBoolean(bool b)
        {
            onBoolean.Invoke(b);
            
            if (b == true)
                onTrue.Invoke();
            else
                onFalse.Invoke();
        }
    }
    
}
